package com.ruyuan.eshop.construction.domain.dto;


import com.ruyuan.eshop.common.domain.DiffValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DraftDetailDTO implements Serializable {

	/**
	 * 草稿主表信息
	 */
	private DraftMainDTO draftMainDTO;

	/**
	 * 草稿图片信息
	 */
	private List<DraftImgDTO> draftImgDTOS;

	/**
	 * item信息不同字段
	 */
	private List<DiffValue> itemDiffFields;

	/**
	 * sku信息不同字段
	 * Map中的key是skuId
	 */
	private Map<String, List<DiffValue>> skuDiffFields;

	public DraftDetailDTO(DraftMainDTO draftMainDTO, List<DraftImgDTO> draftImgDTOS) {
		this.draftMainDTO = draftMainDTO;
		this.draftImgDTOS = draftImgDTOS;
	}

}